<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags"  prefix="s"%>
     <%@taglib uri="/struts-dojo-tags" prefix="sx"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的搜索</title>

<link href="/css/basic/index.css" rel="stylesheet" type="text/css" />
<link href="/css/basic/serch.css" rel="stylesheet" type="text/css" />
<SCRIPT src="/js/index/jquery.js" type=text/javascript></SCRIPT><!-- 所有分类select脚本 -->
<SCRIPT src="/js/index/jQselect.js" type=text/javascript></SCRIPT>
<script src="/js/index/search.js" type="text/javascript"></script>
<SCRIPT type=text/javascript>
	$(document).ready(function() {
		$("#c").selectbox();
	});
	</SCRIPT>
	<sx:head/>
</head>

<body>
<div id="topNavWrapper">
		<s:url id="user_login" namespace="/forward/view" action="basic_top"></s:url>
		<sx:div href="%{user_login}" id="top_show"></sx:div>
</div>
<div id="topadd"><img src="" width="1000" height="50" alt="" /></div>
<div id="wrapper">
		<div id="menu_index">
				<div id="logo"><img src="/image/index/logo.jpg" width="151" height="108" /></div>
				<ul id="daohang">
						<li class="onn"><s:a namespace="/forward/view" action="book_index" cssClass="linkwhite">首页</s:a></li>
						<li class="off"><a href="#">人文历史</a></li>
						<li class="off"><a href="#">人文历史</a></li>
						<li class="off"><a href="#">人文历史</a></li>
						<li class="off"><a href="#">人文历史</a></li>
		  		</ul>
				<div id="shopping"><span>购物车 <strong>0</strong> 件</span></div>
				<div id="search"></div>
				<div id="search_c">
					<div class=searchBar>
							<s:form id="searchFrom" action="search" namespace="/forward/view" onsubmit="return checkDate()">
							  <div class=select>
										<SELECT id=c style="DISPLAY: none" name="type">
										  <OPTION value=-1 selected>所有分类</OPTION>
										  <OPTION value=0>免费资源</OPTION>
										  <OPTION value=1>收费资源</OPTION>
										</SELECT>
							  </div>
							  <div class=text>
										 <INPUT class=s_t id="searchKeyWord"
										onblur="keyonblur(this)" 
										onfocus="keyonfocus(this)" 
									    value="找书、作家、出版社？"	name="keyWord">
								</div>
							  <img src="/image/index/bottom.gif" width="100" height="25" 
							  style="cursor: pointer;" onclick="searchBook()"/>
						</s:form>
					</div>
  		        </div>
 						
  </div>
		<p id="hot"><strong>热门关键词：</strong></p>   		
		
<div class="clr"></div>
</div>	
<!--首页上半部分结束-->
<div class="position">当前位置：搜索结果列表页<span class="boldblue">“青春文学”</span></div>
<div id="search_list">
		<h3><strong>请选择排序方式：</strong>销量多少　| 　价格高到低 　|　价格低到高　 |　按品牌 　| 　<strong>最近上架时间</strong><span>显示方式：<u>图书版</u></span> </h3>
		<h4>以下 <u>${pageView.totalrecord}</u> 条结果， <u>按上架时间</u>排序，显示方式是 <u>图片版</u> 　　每页显示<u>${pageView.maxrecord}</u>条<span></span>当前第 <u>${pageView.currentpage}</u> 页</h4>
		<ul>
			<s:iterator value="pageView.records" var="searchBook">
					<li class="s_l_more">
						<div class="photo"><img name="" src="${searchBook.logo_300 }" width="90" height="90" alt="" style="background-color: #CCCCCC" /></div>
						<s:a  namespace="/forward/view" action="book_browse" cssClass="s_l_link">
										<s:param name="book.id" value="#searchBook.id"></s:param>
							${searchBook.bookName}
						</s:a>
						<div class="icon-area">
							<!-- 类型表示(0、表示QQ 1、表示WW 2、表示电话) -->
							<s:iterator value="#searchBook.shop.childs" var="shop_online">
								<s:if test="#shop_online.userType==0">
										<a target="_blank"
											href="http://wpa.qq.com/msgrd?v=3&uin=${shop_online.userNumber}&site=qq&menu=yes">
											<img border="0"
												src="http://wpa.qq.com/pa?p=2:${shop_online.userNumber}:41"
												alt="点击这里给我发消息" title="点击这里给我发消息"> </a>
								</s:if>
								<s:elseif test="#shop_online.userType==1">
										<a target="_blank"
											href="http://amos.im.alisoft.com/msg.aw?v=2&uid=${shop_online.userNumber}&site=cnalichn&s=4">
											<img border="0"
												src="http://amos.im.alisoft.com/online.aw?v=2&uid=${shop_online.userNumber}&site=cnalichn&s=4"
												alt="有事联系我" /> </a>
								</s:elseif>
							</s:iterator>
						</div>	
						<ul class="attribute">			
								<li class="legend2">
								<a target="_blank" title="卖家承诺消费者保障服务" class="xb-as-fact" href=""><span>消费者保障</span></a>    
								<a target="_blank" title="卖家承诺7天无理由退换货" class="xb-sevenday-return" href=""><span><br />
								七天退换</span></a>	
								<a target="_blank" title="卖家承诺正品保障" class="xb-quality_item" href=""><span><br />
								正品保障</span></a>								</li>
								<li class="sale">书籍描述</li>
								<li class="price">
										￥   <em>${searchBook.price}</em>  
										<span class="shipping">${searchBook.shop.shopName}</span>       
										<span class="extends"><a href="" title="信用卡" class="creditcard" target="_blank">信用卡</a><a href="" class="discount  J_LimitPromotion">折扣</a></span>
								</li>
						</ul>	
				</li>
			</s:iterator>
		</ul>
        <div class="badoo">
	        当前页:第${pageView.currentpage}页 | 总记录数:${pageView.totalrecord}条 | 每页显示:${pageView.maxrecord}条 | 总页数:${pageView.totalpage}页</font>　
		<br/>
		<c:forEach begin="${pageView.pageindex.startindex}" end="${pageView.pageindex.endindex}" var="page">
		    <c:if test="${pageView.currentpage==page}"><span class="current">${page}</span></c:if>
		    <c:if test="${pageView.currentpage!=page}">
		    	<s:a namespace="/forward/view" action="search">
		    		<s:param name="type">${type}</s:param>
		    		<s:param name="page" >${page}</s:param>
		    		[${page}]
		    	</s:a>
		    </c:if>
		</c:forEach>
        </div>
</div>
<div id="footer">
	<s:include value="/page/foot.html"></s:include>
</div>
</body>
</html>